package com.inspur.cloud.demo;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.boot.*;
import org.springframework.boot.autoconfigure.*;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@SpringBootApplication
@ComponentScan("com.inspur")
public class DemoApplication {

    private static final Log logger = LogFactory.getLog(DemoApplication.class);
    
    @RequestMapping(value = "/healthz", method = { RequestMethod.GET })
    String home() {
        return "Hello, Spring Boot Demo!";
    }
    
    public static void main(String[] args) throws Exception {
        logger.debug("Demo Application is starting...");
        SpringApplication.run(DemoApplication.class, args);
    }

}
